package com.april.pattern.structural.decorate;

/**
 * @author April
 * @version V1.0.0
 * @date 2019/07/04 11:43
 * @description 装饰类
 */
public class AbstractDecorator extends AbstractPancake {
    private AbstractPancake pancake = new Pancake();

    public AbstractDecorator(AbstractPancake pancake) {
        this.pancake = pancake;
    }

    @Override
    protected String getDecoration() {
        return this.pancake.getDecoration();
    }

    @Override
    protected int getPrice() {
        return this.pancake.getPrice();
    }
}
